import Vue from 'vue'
import Vuex from 'vuex'

import app from './modules/app'
import dict from './modules/dict'
import permission from './modules/permission'
import user from './modules/user'
import getters from './getters'
// vuex 的内容同步到LocalStorage
import {vuexLocalStorageSyncPlugin} from './sync-storage'

Vue.use(Vuex)

export default new Vuex.Store({
  plugins: [vuexLocalStorageSyncPlugin],
  modules: {
    app,
    dict,
    permission,
    user
  },
  state: {},
  mutations: {},
  actions: {},
  getters
})
